/***************************************************************************
 *   Copyright (C) 2007 by Fernando Pacheco,,,   *
 *   fernando.pacheco@ingesur.com.uy   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef LINE_H
#define LINE_H

#include "point.h"

/**
 * @class Line
 * Very simple class that reside in the libhidrogeo library, has no dependencies with Qt or Miih and do some thing related to lines.
 * @brief Very simple class to work with lines
 * @author Fernando Pacheco <fernando_dot_pacheco_at_ingesur_dot_com_dot_uy>
 *
*/
class HIDROGEO_EXPORT Line {
  public:
    /**
    * Default Constructor
    */
    Line();
    /**
    * Constructor
    * @param ini Point. Initial point.
    * @param end Point. End point.
    */
    Line(Point ini, Point end);
    /**
    * Get the initial point for this line
    */
    Point ini();
    /**
    * Get the end point for this line
    */
    Point end();
    /**
    * Set the initial point for this line
    */
    void setIni(Point ini);
    /**
    * Set the end point for this line
    */
    void setEnd(Point end);

  private:
    /// Initial point for this line
    Point mIni;
    /// End point for this line
    Point mEnd;
};

#endif
